package com.code.day19;

import java.io.File;

public class Demo19FileBianLi {
    public static void main(String[] args) {
        File filelist = new File("D:\\java-code\\java-full-stack\\01-java-base\\src\\com\\code\\day19\\img");
        String[] filelists = filelist.list();
        for (String filelist1 : filelists) {
            System.out.println(filelist1);
        }
        System.out.println(filelists);
        System.out.println("=======");
        File[] files = filelist.listFiles();
        for (File file : files) {
            System.out.println(file);
        }
    }
}
